package main

import (
	"log"
	"net"
	"time"

	"gitee.com/sillyman/pcaphelper"
	"gitee.com/sillyman/pcaphelper/throughtester"
)

func main() {
	tx, err := pcaphelper.New("enp2s0f0")
	if err != nil {
		log.Fatalln(err)
	}

	rx, err := pcaphelper.New("enp3s0")
	if err != nil {
		log.Fatalln(err)
	}

	err = throughtester.New(tx, rx, true).TestEthernet(
		net.HardwareAddr{0x2c, 0x53, 0x4a, 0x08, 0x64, 0x72},
		net.HardwareAddr{0x30, 0x59, 0x3a, 0x05, 0xa9, 0x04},
		time.Second)
	log.Println(err)
}
